package org.grow.pretty.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: nick
 * @Date: 2022/5/30
 */
//@Service
@FeignClient(name = "TOOL-MS", fallback = CodeGeneratorLocalFallback.class)
//@RequestMapping("/util/codeGenerator")
public interface CodeGeneratorRService {
    @GetMapping("/util/codeGenerator/nextCode")
//    @GetMapping("/nextCode")
    String nextCode(@RequestParam String prefix);
}
